package spring2;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class LogAroundAdvice implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation arg0) throws Throwable {
		System.out
				.println("AroundAdvice method starts…" + arg0.getMethod().getName());
		Object result = null;
		try {
			result = arg0.proceed();
		} finally {
			System.out.println("AroundAdvice method return…"
					+ arg0.getMethod().getName());
		}
		return result;
	}
}
